package com.itheima.service.impl;

import com.itheima.pojo.Order;
import com.itheima.service.OrderService;

import java.util.Map;

//todo:当服务器火爆时进入该mock类
public class OrderServiceMock implements OrderService {

    @Override
    public Order addOrder(Map map) {
        Order order = new Order();
        //设置id为-1时
        order.setId(-1);
        return order;
    }

    @Override
    public Map orderSuccess(String id) {
        return null;
    }

    @Override
    public void updateState(Map paramMap) {

    }

    @Override
    public Order findIsPaidByOrderId(String orderId) {
        return null;
    }
}
